from abc import ABC, abstractmethod
from ..dto.Dept import Dept


class DeptsService(ABC):
    @abstractmethod
    async def list(self): ...

    @abstractmethod
    async def delete(self, id: int): ...

    @abstractmethod
    async def save(self, dept: Dept): ...

    @abstractmethod
    async def getById(self, id: int): ...
    @abstractmethod
    async def update(self, dept: Dept): ...